package com.jintoufs.service.sys.impl;

import com.jintoufs.dao.QueryFilters;
import com.jintoufs.dao.sys.LogDAO;
import com.jintoufs.domain.sys.Log;
import com.jintoufs.service.sys.LogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LogServiceImpl implements LogService {
    @Autowired
    private LogDAO logDAO;

    @Override
    public void add(Log log) {
        logDAO.insert(log);
    }

    @Override
    public List<Log> getByFilter(QueryFilters filters_) {
        return logDAO.getByFilter(filters_);
    }
}
